-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Implement Pest Detection Using Custom YOLOv8n Model #216
Open
rohan-uiuc
wants to merge
23
commits into
main
Choose a base branch
from
pest_detection_api
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This introduces a new pest detection feature, leveraging a custom-trained YOLOv8n model. It includes the PestDetection class for processing images, an endpoint for handling pest detection requests, and integration with the Ingest class for running pest detection on images and uploading annotated images to S3.
…:$LD_LIBRARY_PATH
Could try using the Ultralytics container directly: https://hub.docker.com/r/ultralytics/ultralytics |
Super small! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a comprehensive pest detection feature, aimed at enhancing agricultural analysis capabilities. The feature is built around a custom-trained YOLOv8n model, specifically designed for high accuracy in pest detection and classification by @adityasngpta
Key Components Introduced:
PestDetection
class: A core component that loads the YOLOv8n model and performs pest detection on given images, returning annotated images with bounding boxes and class labels./pest-detection
endpoint: A new API endpoint that accepts image URLs for pest detection, processes them through thePestDetection
class, and returns annotated images.Ingest
class: The pest detection feature is seamlessly integrated into the existingIngest
class, allowing for easy invocation of pest detection alongside other functionalities like uploading annotated images to AWS S3Technical Details:
Usage:
This feature can be accessed via the
/pest-detection
endpoint, expecting a JSON payload with animage_urls
key. It supports processing multiple images in a single request, enhancing efficiency and usability for end-users.Future Directions:
While this implementation marks a significant advancement in our backend's capabilities, future work will focus on optimizing model performance, expanding the range of detectable pests, and improving the user experience with more detailed annotations.
This feature is expected to significantly contribute to the agricultural sector by providing advanced tools for pest detection and management, ultimately leading to better crop health and yield.